package com.me.bbs.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.me.bbs.dto.UserFollowingDTO;
import com.me.bbs.entity.UserFollowing;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lm
 * @since 2023-01-22
 */
public interface IUserFollowingService extends IService<UserFollowing> {
    Page<UserFollowingDTO> getUserFollowingPage(Page<UserFollowing> page, Wrapper<UserFollowing> wrapper);
    Page<UserFollowingDTO> getFansPage(Page<UserFollowing> page, Wrapper<UserFollowing> wrapper);

    void follow(UserFollowing userFollowing, Boolean isFollow) throws Exception;
}
